import EnglishSnippet from "@/components/EnglishSnippet";
import { get_english_snippet } from "@/api/english_snippet";

export default async function Home() {
  const data = await get_english_snippet();

  console.log(data);

  return (
    <div className="font flex flex-col justify-center items-center bg-white dark:bg-black text-black dark:text-white">
      <h1 className="m-12 font-bold text-4xl">My English Learn</h1>
      <div>
        <h2 className="text-3xl p-6">English Snippet</h2>
        <EnglishSnippet snippets={data} />
      </div>
    </div>
  );
}
